<?php if (!defined('THINK_PATH')) exit();?><form id="pagerForm" action="__URL__" method="post"><input
	type="hidden" name="pageNum" value="1" /> <input type="hidden"
	name="_order" value="<?php echo ($_REQUEST["_order"]); ?>" /> <input type="hidden"
	name="_sort" value="<?php echo ($_REQUEST["_sort"]); ?>" /></form>


<div class="pageHeader">
<form rel="pagerForm" onsubmit="return navTabSearch(this);"
	action="__URL__" method="post">

<div class="pageFormContent">
<p><label>文章标题：</label> <input name="title" type="text" size="30" />
</p>
<p><label>所属模块：</label> <!-- <input name="module"  type="text" size="30" />-->
<select class="combox" name="module_id" id="module_id">
	<option value="">-----请选择-----</option>
	<?php if(is_array($moduleList)): $i = 0; $__LIST__ = $moduleList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><option value="<?php echo ($vo['id']); ?>"><?php echo ($vo['name']); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
</select> </select></p>
<p><label>是否发布至首页：</label> <!-- <input name="module"  type="text" size="30" />-->
<select class="combox" name="publishindex" id="publishindex">
	<option value="">-----请选择-----</option>	
	<option value="1">是</option>
	<option value="0">否</option>
	</volist>
</select> </select></p>

<div class="subBar">
<ul>
	<li>
	<div class="buttonActive">
	<div class="buttonContent">
	<button type="submit">查询</button>
	</div>
	</div>
	</li>
</ul>
</div>
</div>

</form>
</div>

<div class="pageContent">
<div class="panelBar">
<ul class="toolBar">
	<li><a class="add" href="__URL__/add" target="navTab"><span>新增</span></a></li>
	<li><a class="delete"
		href="__URL__/foreverdelete/id/{sid_user}/navTabId/__MODULE__"
		target="ajaxTodo" title="你确定要删除吗？" warn="请选择文章"><span>删除</span></a></li>
	<li><a class="edit" href="__URL__/edit/id/{sid_user}"
		target="navTab" warn="请选择文章"><span>编辑</span></a></li>
	<li class="line">line</li>
	<!-- <li><a class="icon" href="__URL__/password/id/{sid_user}" target="dialog" mask="true" warn="请选择文章"><span>修改密码</span></a></li> -->
</ul>
</div>

<table class="table" width="100%" layoutH="138">
	<thead>
		<tr>
			<th width="60">编号</th>
			<th width="100">文章标题</th>
			<th width="100">文章作者</th>
			<th>所属模块</th>
			<th>发布时间</th>
			<th>是否发布至首页</th>
			<th>首页缩略图</th>
		</tr>
	</thead>
	<tbody>
		<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><tr target="sid_user" rel="<?php echo ($vo['id']); ?>">
			<td><?php echo ($vo['id']); ?></td>
			<td><?php echo ($vo['title']); ?></td>
			<td><?php echo ($vo['author']); ?></td>
			<td><?php echo ($vo['module']); ?></td>
			<td><?php echo ($vo['createdate']); ?></td>
			<td>
				<?php if( $vo['publishindex'] == '1' ): ?>已发布至首页
					<?php else: ?>
					未发布至首页<?php endif; ?>
			</td>
			
			
			<!-- <td><img src="__PUBLIC__/<?php echo ($vo['imageurl']); ?>" /> </td> -->
			
				<?php if( $vo['imageurl'] != ''): ?><td><a href="__APP__/Blog/image/id/<?php echo ($vo['id']); ?>/type/bulletin" target="dialog" rel="dlg_page10" mask="true" title="首页关联图片"><span><img src="__PUBLIC__/Images/ok.gif"/></span></a>
									<span>
						<img src="__PUBLIC__/Images/file.gif" onclick="BrowseServer(<?php echo ($vo['id']); ?>);" />
					</span>
					</td>	
					<?php else: ?>
					<td><span><img src="__PUBLIC__/Images/error.gif"/></span>
					<span>
						<img src="__PUBLIC__/Images/file.gif" onclick="BrowseServer(<?php echo ($vo['id']); ?>);" />
					</span>
					</td><?php endif; ?>	
			
		</tr><?php endforeach; endif; else: echo "" ;endif; ?>
	</tbody>
</table>

<div class="panelBar">
<div class="pages"><span>共<?php echo ($totalCount); ?>条</span></div>
<div class="pagination" targetType="navTab" totalCount="<?php echo ($totalCount); ?>"
	numPerPage="<?php echo ($numPerPage); ?>" pageNumShown="10"
	currentPage="<?php echo ($currentPage); ?>"></div>
</div>

</div>